﻿package com.tvein.sanguo.swc.action
{
	//flash
	import flash.display.MovieClip;
	//A3D
	//custom
//
	public class MainFrame extends MovieClip
	{
		public static const NAME:String = "MainFrame";
		
		public function MainFrame()
		{
			
		}
		
		public function reSize(frameWidth:int, frameHeight:int)
		{
			mcFrameBG.width = frameWidth;
			mcFrameBG.height = frameHeight;
			
			mcFrame2.width = mcFrame8.width = frameWidth - mcFrame1.width - mcFrame3.width;
			mcFrame4.height = mcFrame6.height = frameHeight - mcFrame1.height - mcFrame7.height;
			
			mcFrame1.x = mcFrame4.x = mcFrame7.x = 0;
			mcFrame2.x = mcFrame8.x = mcFrame1.width;
			mcFrame3.x = mcFrame9.x = mcFrame1.width + mcFrame2.width;
			mcFrame6.x = frameWidth - mcFrame6.width;
			
			mcFrame1.y = mcFrame2.y = mcFrame3.y = 0;
			mcFrame4.y = mcFrame6.y = mcFrame1.height;
			mcFrame7.y = mcFrame9.y = mcFrame1.height + mcFrame4.height;
			mcFrame8.y = frameHeight - mcFrame8.height;
		}
	}
}